package com.hs.mapper;

import com.hs.entity.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Course record);

    int insertSelective(Course record);

    Course selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);

    //查询课程信息列表
    public List<Course> findCourseList(@Param("searchKey") String searchKey);

    //新增课程信息
    public Integer addCourse(Course course);

    //获取全部课程信息
    public List<Course> queryCourseList();


}